Resource /webmapi/luns/{id}Expand | Collapse

APIs for logical storage volumes

Get a specific LUN instance
Description

Get a specific LUN instance

If the instance name is either . or .. , it may be specified in the URL in a pair of single quotes like '.' and '..' (in order to avoid it getting removed by browser or any such client application).

HTTP Example

GET /webmapi/luns/{id}

Path Parameters:
idThe ID or name of the instance (required=true).
Output

Reports successful result in ResponseContentType<LunInfoType>

Errors

Reports errors in ResponseContentType<ErrorType>

Error KeyError CodeError Description
LUN_SHOW_LUN_NOT_FOUND27068LUN not found.
Produces

application/json

Since

1.0

Destroy a LUN
Description

Destroy a LUN

If the instance name is either . or .. , it may be specified in the URL in a pair of single quotes like '.' and '..' (in order to avoid it getting removed by browser or any such client application).

HTTP Example

DELETE /webmapi/luns/{id}?force=param0

Query Parameters:
forceForces the operation (required=false, default=false).

Format: ?force={true|false}

Example: ?force=true

True will forcefully perform the operation. Default is false.

Path Parameters:
idThe ID or name of the instance (required=true).
Output

Reports successful result in ResponseContentType

Errors

Reports errors in ResponseContentType<ErrorType>

Error KeyError CodeError Description
LUN_DESTROY_LUN_NOT_FOUND27046LUN not found.
LUN_DESTROY_LUN_MAPPED_AND_ONLINE27048LUN is mapped and online.
LUN_DESTROY_INTERNAL_ERROR27049Internal error: unable to fetch LUN information.
LUN_DESTROY_SNAPS_EXIST27050LUN has snapshots.
LUN_DESTROY_LUN_ONLINE_FAILED27051Internal error bringing LUN online.
LUN_DESTROY_LUN_OFFLINE_FAILED27052Internal error taking LUN offline.
LUN_DESTROY_DISCARDED27053Internal error occurred and the operation was discarded. This is usually a transient error.
Produces

application/json

Consumes

application/json

Since

1.0

Take a LUN offline
Description

Take a LUN offline

If the instance name is either . or .. , it may be specified in the URL in a pair of single quotes like '.' and '..' (in order to avoid it getting removed by browser or any such client application).

HTTP Example

PUT /webmapi/luns/{id}/action/offline

Path Parameters:
idThe ID or name of the instance (required=true).
Output

Reports successful result in ResponseContentType

Errors

Reports errors in ResponseContentType<ErrorType>

Error KeyError CodeError Description
LUN_OFFLINE_LUN_NOT_FOUND27000LUN not found.
LUN_OFFLINE_LUN_ALREADY_OFFLINE27001LUN is already offline.
LUN_OFFLINE_DISCARDED27003Internal error occurred and the operation was discarded. This is usually a transient error.
Produces

application/json

Consumes

application/json

Since

1.0

Bring a LUN online
Description

Bring a LUN online

If the instance name is either . or .. , it may be specified in the URL in a pair of single quotes like '.' and '..' (in order to avoid it getting removed by browser or any such client application).

HTTP Example

PUT /webmapi/luns/{id}/action/online

Path Parameters:
idThe ID or name of the instance (required=true).
Output

Reports successful result in ResponseContentType

Errors

Reports errors in ResponseContentType<ErrorType>

Error KeyError CodeError Description
LUN_ONLINE_LUN_NOT_FOUND27023LUN not found.
LUN_ONLINE_LUN_ALREADY_ONLINE27024LUN is already online.
LUN_ONLINE_DISCARDED27026Internal error occurred and the operation was discarded. This is usually a transient error.
Produces

application/json

Consumes

application/json

Since

1.0

Display a set of LUN maps given the options provided
Description

Display a set of LUN maps given the options provided

Maps are the initiator groups to which the LUN is mapped. If the instance name is either . or .. , it may be specified in the URL in a pair of single quotes like '.' and '..' (in order to avoid it getting removed by browser or any such client application).

HTTP Example

GET /webmapi/luns/{id}/maps

Path Parameters:
idThe ID or name of the instance (required=true).
Output

Reports successful result in ResponseContentType<LunMapInfoType>

Errors

Reports errors in ResponseContentType<ErrorType>

Error KeyError CodeError Description
LUN_MAP_SHOW_LUN_NOT_FOUND27069LUN not found.
LUN_MAP_SHOW_IGROUP_NOT_FOUND27070Initiator group not found.
LUN_MAP_SHOW_TOO_MANY_OPTIONS_SPECIFIED27071Too many options specified.
Produces

application/json

Since

1.0